package org.team4.web.ajax;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;
import org.team4.util.Meta;

import com.opensymphony.xwork2.Action;

@Controller
@Scope("prototype")
public class MetaAjaxAction {

    private String usersId;
    private String webId;
    private String useable;

    /**
     * 查询其他用户的操作权限
     * @return
     * @throws Exception
     */
    public String findOtherUsersOperate() throws Exception {
        useable = Meta.getOtherOperate(usersId, webId);
        return Action.SUCCESS;
    }

    public void setUsersId(String usersId) {
        this.usersId = usersId;
    }

    public void setWebId(String webId) {
        this.webId = webId;
    }

    public String getUseable() {
        return useable;
    }
}